home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 14299 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.9 KB

  1. Path: nntp.teleport.com!usenet
  2. From: GHouck <hksys@teleport.com>
  3. Newsgroups: comp.unix.programmer,comp.lang.c,comp.unix.internals
  4. Subject: Re: C compiler Error on EXEC SQL
  5. Date: 13 Apr 1996 07:02:42 GMT
  6. Organization: systems hk
  7. Message-ID: <4knjii$i9s@nadine.teleport.com>
  8. References: <4kkej2$3ta@news.cc.utah.edu>
  9. NNTP-Posting-Host: ip-pdx14-40.teleport.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 1.22 (Windows; I; 32bit)
  14.  
  15. dpncc@utah.state.ut.us (NCC Network) wrote:
  16. >
  17. >Hi
  18. >
  19. >I post this for my friend who has no access to the internet and would like to
  20. >get help from C experts in the Net. She has a C program left over from a guy
  21. >left the company. The C source code is included below as well as the compiler
  22. >error generated by HP UNIX. What is the EXEC SQL instruction ? It doesn't seem
  23. >to be a standard C. 
  24. >
  25. [snip]
  26. >
  27. >(Bundled) cc:  line 4: error 1000: Unexpected symbol: "SQL".
  28. >(Bundled) cc:  line 4: error 1000: Unexpected symbol: ";".
  29. >(Bundled) cc:  line 12: error 1000: Unexpected symbol: "SQL".
  30. >(Bundled) cc:  line 12: error 1000: Unexpected symbol: "DECLARE".
  31. >(Bundled) cc:  line 24: error 1000: Unexpected symbol: "SQL".
  32. >(Bundled) cc:  line 24: error 1000: Unexpected symbol: "DECLARE".
  33. >(Bundled) cc:  line 50: error 1000: Unexpected symbol: "SQL".
  34. >(Bundled) cc:  line 50: error 1000: Unexpected symbol: "'revenue'".
  35. >...............................
  36. [snip]
  37. Dennis,
  38.  
  39. Officially known as 'embedded SQL' source.  If Oracle database, then it can
  40. be called PRO*C, if INGRES: ESQL, etc.  As indicated by others, preprocess
  41. with the database vendors pre-processor, then compile with a C compiler
  42. that the vendor supports (I would assume your system has the correct
  43. one resident, if it used to work).  There was likely left behind
  44. command procedures or batch files to invoke the pre-process, compile,
  45. link sequence.
  46. Good luck,
  47. Geoff Houck
  48.  
  49.  
  50.